package com.shop.search.service;

import com.shop.common.entity.CommonResult;
import com.shop.search.pojo.SearchProduct;

import java.util.List;

/**
 * @author ghy
 * @version 1.0
 * @date 2020-11-02
 */
public interface SearchProductService {

    List<SearchProduct> findAll();

    /**
     * 导入数据到Solr
     * @return
     */
    CommonResult initData();

    /**
     * 搜索
     * @param keyword
     * @return
     */
    List<SearchProduct> search(String keyword) throws Exception;
}
